package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-05-22 09:04:48.892
 */
@Entity
@Table(name = "WF_NODE_ATTR",catalog = "wfdb")
public class WfNodeAttr implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_NODE_ATTR";

    /**属性编号 */
	public static final String ALIAS_ATTR_ID = "ATTR_ID";
    /**属性块编号 */
	public static final String ALIAS_FIELDSET_ID = "FIELDSET_ID";
    /**流程节点编号 */
	public static final String ALIAS_NODE_ID = "NODE_ID";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**属性编码 */
	public static final String ALIAS_ATTR_CODE = "ATTR_CODE";
    /**属性名 */
	public static final String ALIAS_ATTR_NAME = "ATTR_NAME";
    /**属性类型 */
	public static final String ALIAS_ATTR_TYPE = "ATTR_TYPE";
    /**只读:Y/N */
	public static final String ALIAS_READONLY = "READONLY";
    /**必填:Y/N */
	public static final String ALIAS_REQUIRED = "REQUIRED";
    /**是否节点属性:Y/N */
	public static final String ALIAS_IS_NODE_ATTR = "IS_NODE_ATTR";
    /**属性表达式 */
	public static final String ALIAS_ATTR_EXP = "ATTR_EXP";
    /**占位(一行占位格数) */
	public static final String ALIAS_COL = "COL";
    /**排序 */
	public static final String ALIAS_SORT = "SORT";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ATTR_ID", unique = true, nullable = false)
    public java.lang.Long attrId;
  
 	@Column(name = "FIELDSET_ID")
    public java.lang.Long fieldsetId;
  
 	@Column(name = "NODE_ID")
    public java.lang.Long nodeId;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "ATTR_CODE")
    public java.lang.String attrCode;
  
 	@Column(name = "ATTR_NAME")
    public java.lang.String attrName;
  
 	@Column(name = "ATTR_TYPE")
    public java.lang.String attrType;
  
 	@Column(name = "READONLY")
    public java.lang.String readonly;
  
 	@Column(name = "REQUIRED")
    public java.lang.String required;
  
 	@Column(name = "IS_NODE_ATTR")
    public java.lang.String isNodeAttr;
  
 	@Column(name = "ATTR_EXP")
    public java.lang.String attrExp;
  
 	@Column(name = "COL")
    public java.lang.Long col;
  
 	@Column(name = "SORT")
    public java.lang.Long sort;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  





	public java.lang.Long getAttrId() {
		return this.attrId;
	}
	
	public void setAttrId(java.lang.Long value) {
		this.attrId = value;
	}

	public java.lang.Long getFieldsetId() {
		return this.fieldsetId;
	}
	
	public void setFieldsetId(java.lang.Long value) {
		this.fieldsetId = value;
	}

	public java.lang.Long getNodeId() {
		return this.nodeId;
	}
	
	public void setNodeId(java.lang.Long value) {
		this.nodeId = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getAttrCode() {
		return this.attrCode;
	}
	
	public void setAttrCode(java.lang.String value) {
		this.attrCode = value;
	}

	public java.lang.String getAttrName() {
		return this.attrName;
	}
	
	public void setAttrName(java.lang.String value) {
		this.attrName = value;
	}

	public java.lang.String getAttrType() {
		return this.attrType;
	}
	
	public void setAttrType(java.lang.String value) {
		this.attrType = value;
	}

	public java.lang.String getReadonly() {
		return this.readonly;
	}
	
	public void setReadonly(java.lang.String value) {
		this.readonly = value;
	}

	public java.lang.String getRequired() {
		return this.required;
	}
	
	public void setRequired(java.lang.String value) {
		this.required = value;
	}

	public java.lang.String getIsNodeAttr() {
		return this.isNodeAttr;
	}
	
	public void setIsNodeAttr(java.lang.String value) {
		this.isNodeAttr = value;
	}

	public java.lang.String getAttrExp() {
		return this.attrExp;
	}
	
	public void setAttrExp(java.lang.String value) {
		this.attrExp = value;
	}

	public java.lang.Long getCol() {
		return this.col;
	}
	
	public void setCol(java.lang.Long value) {
		this.col = value;
	}

	public java.lang.Long getSort() {
		return this.sort;
	}
	
	public void setSort(java.lang.Long value) {
		this.sort = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}


	
	public WfNodeAttr() {
	}
	
	public WfNodeAttr(boolean qryflag) {
	    if(qryflag){
	    		this.attrId = null;
				this.fieldsetId = null;
				this.nodeId = null;
				this.flowId = null;
				this.attrCode = null;
				this.attrName = null;
				this.attrType = null;
				this.readonly = null;
				this.required = null;
				this.isNodeAttr = null;
				this.attrExp = null;
				this.col = null;
				this.sort = null;
				this.createTime = null;
			    }
	}


	public WfNodeAttr(
	    java.lang.Long inAttrId,
	    java.lang.Long inFieldsetId,
	    java.lang.Long inNodeId,
	    java.lang.Long inFlowId,
	    java.lang.String inAttrCode,
	    java.lang.String inAttrName,
	    java.lang.String inAttrType,
	    java.lang.String inReadonly,
	    java.lang.String inRequired,
	    java.lang.String inIsNodeAttr,
	    java.lang.String inAttrExp,
	    java.lang.Long inCol,
	    java.lang.Long inSort,
		java.util.Date inCreateTime
	 ) {
		super();
				this.attrId = inAttrId;
				this.fieldsetId = inFieldsetId;
				this.nodeId = inNodeId;
				this.flowId = inFlowId;
				this.attrCode = inAttrCode;
				this.attrName = inAttrName;
				this.attrType = inAttrType;
				this.readonly = inReadonly;
				this.required = inRequired;
				this.isNodeAttr = inIsNodeAttr;
				this.attrExp = inAttrExp;
				this.col = inCol;
				this.sort = inSort;
				this.createTime = inCreateTime;
			}





}

